home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 4: GNU Archives / Linux Cubed Series 4 - GNU Archives.iso / gnu / fontutil.6 / fontutil / fontutils-0.6 / imageto / image-header.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-05-21  |  1.2 KB  |  36 lines

  1. /* image-header.h: declarations for a generic image header.
  2.  
  3. Copyright (C) 1992 Free Software Foundation, Inc.
  4.  
  5. This program is free software; you can redistribute it and/or modify
  6. it under the terms of the GNU General Public License as published by
  7. the Free Software Foundation; either version 2, or (at your option)
  8. any later version.
  9.  
  10. This program is distributed in the hope that it will be useful,
  11. but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  13. GNU General Public License for more details.
  14.  
  15. You should have received a copy of the GNU General Public License
  16. along with this program; if not, write to the Free Software
  17. Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  */
  18.  
  19. #ifndef IMAGE_HEADER_H
  20. #define IMAGE_HEADER_H
  21.  
  22. #include "types.h"
  23.  
  24. /* The important general information about the image data.  
  25.    See `get_{img,pbm}_header' for the full details of the headers for
  26.    the particular formats.  */
  27. typedef struct
  28. {
  29.   two_bytes hres, vres;        /* In pixels per inch.  */
  30.   two_bytes width, height;    /* In bits.  */
  31.   two_bytes depth;        /* Perhaps the depth?  */
  32.   unsigned format;        /* (for pbm) Whether packed or not.  */
  33. } image_header_type;
  34.  
  35. #endif /* not IMAGE_HEADER_H */
  36.